package cn.zjitc.ioc.anno.service.impl;

import cn.zjitc.ioc.anno.dao.UserDao;
import cn.zjitc.ioc.anno.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource(name = "userDao")
    private UserDao userDao;
    @Override
    public void save() {
        System.out.println("UserService2 running");
        userDao.save();
    }
}
